package com.jzzzb.cycle;

import com.jzzzb.cycle.bean.A;
import com.jzzzb.cycle.bean.UserDao;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Main {

	public static void main(String[] args) {
		ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("spring.xml");
		System.out.println(context.getBean("userDaoStatic", UserDao.class));
		System.out.println(context.getBean("userDao", UserDao.class));
	}
}
